package com.kly.constant;

/**
 * @author admin
 * @date 2025/2/16
 */
public interface UserConstant {

    String USER_LOGIN_STATE = "userLoginState";


    /**
     * 登录态过期时间
     */
    public static final Long LOGIN_STATE_EXPIRE_TIME = 30 * 60 * 1000L;

    /**
     * 用户信息key
     */
    public static final String LOGIN_USER_KEY = "user:login:";

//     用户权限

    /**
     * 管理员权限
     */
    Integer ADMIN_ROLE = 1;

    /**
     * 普通用户权限
     */
    Integer COMMON_ROLE = 0;


    /**
     * 推荐用户缓存key
     */
    String USER_RECOMMEND_KEY = "kly:user:recommend";


    /**
     * 加密盐
     */
    String SALT = "kly";

    /**
     * 分布式锁key
     */
    String USER_LOCK_KEY = "kly:user:lock";

    /**
     * 默认头像
     */
    String DEFAULT_AVATAR = "https://luqi-bucket.oss-cn-beijing.aliyuncs.com/2025/03/01/40a303d9-aa18-4b7c-b5bd-aa88c932f9c8.jpg";

}
